package com.ruoyi.common.enums;

/**
 * 用户状态
 * 
 * @author ruoyi
 */
public enum BundleId
{
//    YTAXI("ru.yandex.ytaxi","[YT]MA_UA-goal_RU-ALL-ALL_iOS_Atlasmobii","https://app.adjust.com/1994hsnl"),
    YTAXI("ru.yandex.ytaxi","10415174","https://yandex.go.link/"),
//    MAANA("com.sa.maana","ARFM_Aug","https://app.adjust.com/1c2u9v2x"),
    APPQUAKE("com.purevpn.ios.PureVPN","appquake_ios_a44","https://app.adjust.com/1deaqwue"),
//    KSA74_NM("ru.rivegauche.wkapp","KSA74","https://app.adjust.com/1f2zq8td"),
    KSA74_NM("ru.rivegauche.wkapp","MediaSurfer_IOS_UA_8398","https://app.adjust.com/1faycxer"),
//    WFE_SEP_992_GKI001_BH1125_NM("com.sa.maana","WFE_Sep","https://app.adjust.com/19bso5fl");
    WFC_Oct_992_01_BAI_NM("com.sa.maana","WFC_Oct","https://app.adjust.com/19bso5fl");

    private final String code;
    private final String appName;
    private final String url;

    BundleId(String code, String appName, String url)
    {
        this.code = code;
        this.appName = appName;
        this.url = url;
    }

    public String getCode()
    {
        return code;
    }

    public String getAppName()
    {
        return appName;
    }


    public String getUrl()
    {
        return url;
    }

    public static String getAppNameByCode(String code) {
        for (BundleId bundleId : BundleId.values()) {
            if (bundleId.code.equals(code)) {
                return bundleId.appName;
            }
        }
        return null;
    }

    public static BundleId getBundleIdByCode(String code) {
        for (BundleId bundleId : BundleId.values()) {
            if (bundleId.code.equals(code)) {
                return bundleId;
            }
        }
        return null;
    }
}
